package com.pig.vo;

import java.math.BigDecimal;
import java.util.Date;

public class SeckillOrderVO {
    private Long id; //  订单ID
    private Long productId;         // 秒杀商品ID
    private String userId;         // 用户id
    private String name;             // 商品名称
    private BigDecimal price;       // 秒杀价格
    private Date payTime;           // 支付时间
    private Integer status;        // 状态：0-未支付，1-已支付，2-已取消，3-已发货，4-已完成, 5-退货， 6-退款中
    private Date createdTime;       // 创建时间

    public SeckillOrderVO() {
    }

    public SeckillOrderVO(Long id, Long productId, String userId, String name, BigDecimal price, Date payTime, Integer status, Date createdTime) {
        this.id = id;
        this.productId = productId;
        this.userId = userId;
        this.name = name;
        this.price = price;
        this.payTime = payTime;
        this.status = status;
        this.createdTime = createdTime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    @Override
    public String toString() {
        return "SeckillOrderVO{" +
                "id=" + id +
                ", productId=" + productId +
                ", userId='" + userId + '\'' +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", payTime=" + payTime +
                ", status=" + status +
                ", createdTime=" + createdTime +
                '}';
    }
}
